class CategoryParentEntity {
	int errno;
	CategoryParentData data;
	String errmsg;

	CategoryParentEntity({this.errno, this.data, this.errmsg});

	CategoryParentEntity.fromJson(Map<String, dynamic> json) {
		errno = json['errno'];
		data = json['data'] != null ? new CategoryParentData.fromJson(json['data']) : null;
		errmsg = json['errmsg'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['errno'] = this.errno;
		if (this.data != null) {
      data['data'] = this.data.toJson();
    }
		data['errmsg'] = this.errmsg;
		return data;
	}
}

class CategoryParentData {
	List<CategoryParentDataList> xList;

	CategoryParentData({this.xList});

	CategoryParentData.fromJson(Map<String, dynamic> json) {
		if (json['list'] != null) {
			xList = new List<CategoryParentDataList>();(json['list'] as List).forEach((v) { xList.add(new CategoryParentDataList.fromJson(v)); });
		}
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.xList != null) {
      data['list'] =  this.xList.map((v) => v.toJson()).toList();
    }
		return data;
	}
}

class CategoryParentDataList {
	String title;
	List<CategoryParentDataListCategory> category;
	String desc;

	CategoryParentDataList({this.title, this.category, this.desc});

	CategoryParentDataList.fromJson(Map<String, dynamic> json) {
		title = json['title'];
		if (json['category'] != null) {
			category = new List<CategoryParentDataListCategory>();(json['category'] as List).forEach((v) { category.add(new CategoryParentDataListCategory.fromJson(v)); });
		}
		desc = json['desc'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['title'] = this.title;
		if (this.category != null) {
      data['category'] =  this.category.map((v) => v.toJson()).toList();
    }
		data['desc'] = this.desc;
		return data;
	}
}

class CategoryParentDataListCategory {
	String typeStr;
	String name;
	int id;
	int type;
	int parentId;
	String url;

	CategoryParentDataListCategory({this.typeStr, this.name, this.id, this.type, this.parentId, this.url});

	CategoryParentDataListCategory.fromJson(Map<String, dynamic> json) {
		typeStr = json['typeStr'];
		name = json['name'];
		id = json['id'];
		type = json['type'];
		parentId = json['parentId'];
		url = json['url'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['typeStr'] = this.typeStr;
		data['name'] = this.name;
		data['id'] = this.id;
		data['type'] = this.type;
		data['parentId'] = this.parentId;
		data['url'] = this.url;
		return data;
	}
}
